cmake_minimum_required(VERSION 2.6)

#define project
project (irclib)
set(CMAKE_VERBOSE_MAKEFILE OFF)
set(LIBRARY_OUTPUT_PATH lib/${CMAKE_BUILD_TYPE})

#verifing system
if (UNIX)
	set(compile_flag -Dlinux)
endif (UNIX)
if (WIN32)
	set(compile_flag -DWIN32)
endif (WIN32)
set(CMAKE_C_FLAGS  ${CMAKE_C_FLAGS} ${compile_flag})

#identification des fichiers
set(
	sources_files
	src/socket.c
	src/socket.h
	src/error.h
)

#creating library
add_library(
	irclib
	SHARED
	${sources_files}
)


